package site.zhanjingbo.shop.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import site.zhanjingbo.shop.dao.TRXDao;
import site.zhanjingbo.shop.meta.TRX;
import site.zhanjingbo.shop.service.TRXService;

@Service
public class TRXServiceImpl implements TRXService {

	@Resource
	private TRXDao trxDao;

	@Override
	public boolean addTRX(TRX trx) {

		trxDao.addTRX(trx);
		if (trx.getId() != 0) {
			return true;
		}

		return false;
	}

}
